<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wiki Edit</title>
    <style>
        header{
            text-align: center;
            border-bottom: 1px solid black;
        }
        header > h1{
            font-size: 23px;
            font-family: 'Times New Roman', Times, serif;
        }
        .form-item > textarea{
            width: calc(100% - 5px);
            height: 400px;
            font-size: 14px;
            font-family: Arial, Helvetica, sans-serif;
            resize: none;
        }
        .submitBtn{
            width: 100px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <header>
        <h1>Editing {{.Title}}</h1>
    </header>
    <main>
        <form action="/save/{{.Title}}" method="POST">
            <div class="form-item">
                <textarea name="body" rows="20" cols="80">{{printf "%s" .Body}}</textarea>
            </div>
            <div class="form-item">
                <input class="submitBtn" type="submit" value="Save">
            </div>
        </form>
    </main>
</body>
</html>